<?xml version='1.0' encoding='UTF-8' ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:t="http://myfaces.apache.org/tomahawk"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:corejsf="http://corejsf.com">
<h:head>
	<title>Title</title>
</h:head>
<h:body>
	<h:form enctype="multipart/form-data">
			<h:dataTable border="1" value="#{listing.pictureList}" var="list"
				style="width: 428px; ">
				<h:column id="column1">
					<f:facet name="header">
						<h:outputText value="ID"></h:outputText>
					</f:facet>
            #{list.id}
            </h:column>
				<h:column id="column2">
					<f:facet name="header">
						<h:outputText value="Description"></h:outputText>
					</f:facet>
					<h:outputText value="#{list.description}"></h:outputText>
				</h:column>
				<h:column id="column3">
					<a href="DisplayPictureServlet?id=#{list.id}">view</a>
				</h:column>

				<h:column>
					<corejsf:upload target="upload/#{listing.}" />
					<h:commandButton value="Submit" action="/submittedImage" />
				</h:column>
			</h:dataTable>
		</h:form> 
		</h:body>


</html>